#工具包，把一些公共的代码提取出来，方便维护

def get_responser(request):
    user = request.user
    # 获取审批者
    # 1.如果是部门leader
    if user.department.leader.uid == user.uid:
        # 1.1.如果是董事会
        if user.department.name == '董事会':
            responser = None
        else:
            responser = user.department.managers
    else:
        responser = user.department.leader
    return responser